package chapter01;

import java.util.Scanner;

public class Test06_SplitNumbers {
    public static void main(String[] args) {
        //把一个三位数转换成三个数
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个三位数：");
        int number = scanner.nextInt();
        //进行切分 123
        int bai = number/100;
        int shi = number/10%10;
        int ge = number%10;
        System.out.println("百位："+bai+
                ",十位："+shi+",个位："+ge);
    }
}
